<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>学生首页</title>
    <div th:replace="common/student_commonElement :: css"></div>
    <style>
        .tree li {
            list-style-type: none;
            cursor: pointer;
        }

        .tree-closed {
            height: 40px;
        }

        .tree-expanded {
            height: auto;
        }
    </style>
</head>

<body>
<div th:replace="common/student_commonElement :: nav"></div>
<div class="container-fluid">
    <div class="row">
        <div th:replace="common/student_commonElement :: sider"></div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <div class="panel panel-default">
                <div class="panel-heading">我的资料
                    <div style="float:right;cursor:pointer;" data-toggle="modal" data-target="#myModal"><i
                            class="glyphicon glyphicon-question-sign"></i></div>
                </div>
                <div class="panel-body">
                    <form>
                        <input type="hidden" name="_method" value="PUT">
                        <input type="hidden" name="sid" value="${student.sid}">
                        <div class="form-group">
                            <label for="id">学号</label>
                            <input disabled type="text" class="form-control" id="id" name="id" th:value="${session.student.id}">
                        </div>
                        <div class="form-group">
                            <label for="name">姓名</label>
                            <input disabled type="text" class="form-control" id="name" name="name" th:value="${session.student.name}">
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:replace="common/student_commonElement :: jsFile"></div>
<script type="text/javascript">
    $(function () {
        $(".list-group-item").click(function () {
            if ($(this).find("ul")) {
                $(this).toggleClass("tree-closed");
                if ($(this).hasClass("tree-closed")) {
                    $("ul", this).hide("fast");
                } else {
                    $("ul", this).show("fast");
                }
            }
        });
    });
</script>
</body>
</html>